home *** CD-ROM | disk | FTP | other *** search
/ Global Amiga Experience / globalamigaexperience.iso / compressed / graphic / arteffectdemodisk1.dms / arteffectdemodisk1.adf / Install ArtEffect < prev    next >
Text File  |  1995-06-12  |  11KB  |  340 lines

  1. ; $VER: InstallArtEffect.eng 2.0 (28.03.95)
  2. ; by A. Pratsch (based on the english version 1.4 of Frank Neumann)
  3. ; by Frank Neumann (23.03.95), based on the german version 1.4 by A. Pratsch
  4. ;
  5. ; Things I do:
  6. ; install pic.library
  7. ; delete old picformats (with warning)
  8. ; install picformats (ask)
  9. ; install egsutil.library
  10. ; install egs_r3d.library
  11. ; install cinemaausgabe.library
  12. ; install ArtEffect
  13. ; install colortools (ask)
  14. ; install convolve (ask)
  15. ; install macros (ask)
  16. ; install presets (ask)
  17. ; install shellscripts (ask)
  18. ; install startup.rexx (ask)
  19. ; add assign to user-startup
  20.  
  21. (complete 0)
  22.  
  23. ;deinstall ArtEffect ?
  24. (set defpath @default-dest)
  25.  
  26. (if (= (exists "EGS:" (noreq)) 2)
  27.     (set defpath "EGS:")
  28.     (
  29.         (message "ArtEffect requieres that you have EGS installed!")
  30.         (abort)
  31.     )
  32. )
  33.  
  34. (copyfiles
  35.     (source "ArtEffectDisk1:c")
  36.     (dest "ram:")
  37.     (all)
  38. )
  39.  
  40. (complete 2)
  41.  
  42. (if (= (exists "ArtEffect:" (noreq)) 2)
  43.     (set target "ArtEffect:")
  44.     (
  45.     (set target
  46.         (askdir
  47.             (prompt "Where do you want the ArtEffect directory to be installed ?")
  48.             (help "You will need about 1 MBytes harddisk space for the entire installation, including all macros and operators.")
  49.             (default defpath)
  50.             (disk)
  51.         )
  52.     )
  53.     (set target (tackon target "ArtEffect"))
  54.     (makedir target (infos))
  55.     )
  56. )
  57.  
  58. (set @default-dest target)
  59.  
  60. (set processor
  61.     (database "cpu")
  62. )
  63.  
  64. (if
  65.     (OR (= processor "68000") (= processor "68010"))
  66.     (abort "ArtEffect requires at least a 68020 processor.")
  67. )
  68.  
  69. (set ram
  70.     (database "total-mem")
  71. )
  72.  
  73. ;convert ram-string to ram-number
  74. (set ram (+ ram 0))
  75.  
  76. (if (<> target "ArtEffect:")
  77. (
  78. (if
  79.     (< ram 8000000)
  80.     (message "In order to make use of all functions of ArtEffect, you will need about 8 MB of free memory when starting it.")
  81. )
  82.  
  83. (if
  84.     (AND (= processor "68040") (> ram 12000000))
  85.     (message "Your system is ideally suited for ArtEffect. Have much fun with it.")
  86. )
  87. )
  88. )
  89.  
  90. (working "Decompressing data.\n\nPlease be patient...")
  91. (run "ram:lharc -m -x x ArtEffectDisk1:Libs/libs.lzh T:Install/")
  92.  
  93. (copylib
  94.     (prompt "ArtEffect comes with a new version of the 'pic.library'. Do you want to install it ?")
  95.     (help "The pic.library makes it possible for ArtEffect to support a lot of different graphic file formats.")
  96.     (source "T:Install/libs/pic.library")
  97.     (dest "egs:libs")
  98.     (confirm))
  99. (complete 3)
  100.  
  101. (if (<> target "ArtEffect:")
  102. (if (= (exists "egs:libs/picformats" (noreq)) 2)
  103.     (
  104.     (message "Your old pic.library drivers have to be deleted now as they are not compatible with the new version of the pic.library.")
  105.     (foreach ("egs:libs/picformats/") ("#?") (delete (tackon "egs:libs/picformats" @each-name) (optional force)))
  106.     )
  107.     (makedir "egs:libs/picformats")
  108. )
  109. )
  110.  
  111. (copyfiles
  112.     (prompt "ArtEffect comes with a couple of drivers for different graphic file formats. You may now select which of these you need for your work.")
  113.     (help "All installed drivers will be loaded into memory when ArtEffect is started. So you do not only save harddisk space but also memory if you do not install some of the drivers.")
  114.     (source "T:Install/libs/picformats")
  115.     (dest "egs:libs/picformats")
  116.     (all)
  117.     (confirm))
  118. (complete 14)
  119.  
  120. (copylib
  121.     (prompt "ArtEffect comes with an additional EGS library 'egsutil.library' that is not part of the regular EGS system. Do you want to install this library ?")
  122.     (help "The 'egsutil.library' is currently only required by programs from the Ing. Büro Helfrich (like ArtEffect).")
  123.     (source "T:Install/libs/egsutil.library")
  124.     (dest "egs:libs")
  125.     (confirm))
  126. (complete 15)
  127.  
  128. (copylib
  129.     (prompt "ArtEffect allows the import of images from Real 3D V2.x. To enable this feature, however, you need a new 'egs_r3d.library'. It can be installed in this step.")
  130.     (help "The 'egs_r3d.library' is an EGS driver for Real 3D V2.x, written by Alexander Pratsch.")
  131.     (source "T:Install/libs/egs_r3d.library")
  132.     (dest "egs:libs")
  133.     (confirm))
  134. (complete 16)
  135.  
  136. (copylib
  137.     (prompt "ArtEffect allows the import of images from Cinema 4D. To enable this feature, however, you need the 'cinemaausgabe.library'. It can be installed in this step.")
  138.     (help "The 'cinemaausgabe.library' is an EGS driver for Cinema 4D, written by Alexander Pratsch.")
  139.     (source "T:Install/libs/cinemaausgabe.library")
  140.     (dest "libs:")
  141.     (confirm))
  142.  
  143. (run "c:delete T:Install all quiet")
  144.  
  145. (complete 17)
  146.  
  147. (working "Decompressing data.\n\nPlease be patient...")
  148. (run "ram:lharc -m -x x ArtEffectDisk1:program/ArtEffect.lzh T:Install/")
  149.  
  150. (copyfiles
  151.     (prompt "Installing ArtEffect")
  152.     (help "This is the main program. You'll definitely want to install this.")
  153.     (source "T:Install/")
  154.     (dest target)
  155.     (all)
  156.     (confirm)
  157.     (infos))
  158. (run "c:delete T:Install all quiet")
  159.  
  160. (complete 42)
  161.  
  162. (set subtarget (tackon target "colortools"))
  163. (working "Decompressing data.\n\nPlease be patient...")
  164. (run "ram:lharc -m -x x ArtEffectDisk1:Colortools/Colortools.lzh T:Install/")
  165.  
  166. (copyfiles
  167.     (prompt "Installing ArtEffect - Color Processor")
  168.     (help "The Color Processor allows different image modifications, like black&white negative images or false color effects.")
  169.     (source "T:Install/")
  170.     (dest subtarget)
  171.     (all)
  172.     (confirm))
  173. (run "c:delete T:Install all quiet")
  174.  
  175. (complete 43)
  176.  
  177. (set subtarget (tackon target "convolve"))
  178. (working "Decompressing data.\n\nPlease be patient...")
  179. (run "ram:lharc -m -x x ArtEffectDisk1:Convolve/Convolve.lzh T:Install/")
  180.  
  181. (copyfiles
  182.     (prompt "Installing ArtEffect - Convolve Processor")
  183.     (help "The Convolve Processor allows further image modifications, like enhancement or reduction of image sharpness, relief effects or edge detection.")
  184.     (source "T:Install/")
  185.     (dest subtarget)
  186.     (all)
  187.     (confirm))
  188. (run "c:delete T:Install all quiet")
  189.  
  190. (complete 44)
  191.  
  192. (set subtarget (tackon target "macros"))
  193. (working "Decompressing data.\n\nPlease be patient...")
  194. (run "ram:lharc -m -x x ArtEffectDisk1:Macros/Macros.lzh T:Install/")
  195.  
  196. (copyfiles
  197.     (prompt "Installing ArtEffect - Arexx Macros")
  198.     (help "The included ARexx macros are supposed to be templates for your own ARexx programs. They probably don't make very much sense as-is.")
  199.     (source "T:Install")
  200.     (dest subtarget)
  201.     (all)
  202.     (confirm))
  203. (run "c:delete T:Install all quiet")
  204.  
  205. (complete 45)
  206.  
  207. (set subtarget (tackon target "presets"))
  208. (copyfiles
  209.     (prompt "Installing ArtEffect - Presets")
  210.     (help "Presets are preferences settings for ArtEffect. A single mouse click suffices to rearrange all or part of the user interface and program.")
  211.     (source "ArtEffectDisk1:presets")
  212.     (dest subtarget)
  213.     (all)
  214.     (confirm))
  215.  
  216. (set subtarget (tackon target "plugin"))
  217. (working "Decompressing data.\n\nPlease be patient...")
  218. (run "ram:lharc -m -x x ArtEffectDisk1:PlugIn/PlugIn.lzh T:Install/")
  219.  
  220. (copyfiles
  221.     (prompt "Installing ArtEffect - PlugIns")
  222.     (help "PlugIns are external programs that can be started from within ArtEffect"
  223.                 "and are communicating with it. They have been realized"
  224.                 "by utilizing ArtEffect's own programmer interface.")
  225.     (source "T:Install")
  226.     (dest subtarget)
  227.     (all)
  228.     (confirm))
  229. (run "c:delete T:Install all quiet")
  230.  
  231. (set subtarget (tackon target "Paper"))
  232. (working "Decompressing data.\n\nPlease be patient...")
  233. (run "ram:lharc -m -x x ArtEffectDisk1:Paper/Paper.lzh T:Install/")
  234.  
  235. (copyfiles
  236.     (prompt "Installing ArtEffect - Papertypes")
  237.     (help "Papiertypes are allowing different paint effects. E.g. you can paint on wood or granit and you will see the corresponding structures.")
  238.     (source "T:Install/")
  239.     (dest subtarget)
  240.     (all)
  241.     (confirm))
  242. (run "c:delete T:Install all quiet")
  243.  
  244. (set subtarget (tackon target "developer"))
  245. (copyfiles
  246.     (prompt "Installing ArtEffect - Developer Information")
  247.     (help "The developer information is interesting for programmers."
  248.                 "It explains the communication interface 'PicoTalk'"
  249.                 "of ArtEffect which has been used to develop the PlugIn programs."
  250.                 "Using this material, everyone can write his own extensions to ArtEffect.")
  251.     (source "ArtEffectDisk1:developer")
  252.     (dest subtarget)
  253.     (infos)
  254.     (all)
  255.     (confirm))
  256.  
  257. (copyfiles
  258.     (prompt "Installing ArtEffect - Startup Script")
  259.     (help "The startup script contains the default settings for the different windows and requesters. You can modify it as you like.")
  260.     (source "ArtEffectDisk1:presets/Startup")
  261.     (dest target)
  262.     (newname "startup.rexx")
  263.     (confirm)
  264. )
  265.  
  266. (complete 46)
  267.  
  268. (set subtarget (tackon target "shellscripts"))
  269. (copyfiles
  270.     (prompt "Installing ArtEffect - ARexx shell scripts")
  271.     (help "The ARexx shell scripts can only be executed from a shell as they produce text output.")
  272.     (source "ArtEffectDisk1:shellscripts")
  273.     (dest subtarget)
  274.     (all)
  275.     (confirm))
  276.  
  277. (complete 48)
  278.  
  279. (if (<> target "ArtEffect:")
  280.     (
  281.     (startup "ArtEffect"
  282.         (prompt "Some commands have to be added to the \"S:user-startup\" file to make ArtEffect run properly.")
  283.         (help "This step is required for proper operation of ArtEffect so that it can find its files.")
  284.         (command "assign ArtEffect: \"" target "\"\n")
  285.     )
  286.     (makeassign "ArtEffect" target)
  287.     (message "You can delete the old PicoPainter program and 'painter:' assignment from your 'S:User-Startup' file. If you have created some ColorProcessor or Convolve settings of your own, you can copy them to the appropriate directories under the ArtEffect: drawer and use them with ArtEffect, too.")
  288.     )
  289. )
  290.  
  291. (complete 50)
  292.  
  293. (set pictures
  294.     (askbool
  295.         (prompt "Do you want to install the example images and title picture ?")
  296.         (help "The example images show off some of the capabilities of ArtEffect. "
  297.                     "The title picture appears each time you start ArtEffect. It may be "
  298.                     "modified or deleted later if you do not like it (Welcome.IFF). If you "
  299.                     "decide to install all images, a further 3 MB of harddisk space is required.")
  300. ))
  301.  
  302. (if (= 1 pictures)
  303.     (
  304.     (askdisk
  305.         (prompt "Please insert the disk labeled 'ArtEffect Disk 2/2' now.")
  306.         (help "This disk contains only the example images.")
  307.         (dest "ArtEffectDisk2")
  308.     (assigns))
  309.     (set subtarget (tackon target "DemoPictures"))
  310.     (makedir subtarget)
  311.  
  312.     (set arg (cat "ram:lharc -m -x x ArtEffectDisk2:DemoBilder.lzh \"" subtarget "/\""))
  313.     (working "Unpacking images.\n\nPlease be patient...")
  314.     (run arg)
  315.  
  316.     (set srcTitle (tackon target "DemoPictures/Welcome.IFF"))
  317.     (set dstTitle (tackon target "Welcome.IFF"))
  318.     (rename srcTitle dstTitle
  319.         (help "If you do not want to see the title picture, it will not be loaded on program start, but it can be found "
  320.                     "in the directory containing the example images.")
  321.         (prompt "Do you want to use (see) the title picture on every program start ?")
  322.         (confirm))
  323.  
  324.     (tooltype
  325.         (dest (tackon target "ArtEffect"))
  326.         (settooltype "CURRENTDIR" (tackon target "DemoPictures")))
  327.     )
  328. )
  329.  
  330. (complete 99)
  331.  
  332. (tooltype
  333.     (dest (tackon target "ArtEffect"))
  334.     (settooltype "LANGUAGE" "ENGLISH"))
  335.  
  336. (delete "ram:lharc")
  337. (delete "ram:RenameInstallation")
  338. (complete 100)
  339. (exit)
  340.